<template>
    <div>
        {{ detail }}
    </div>
</template>
<style>

</style>
<script>

    /**
    *获取路径的参数
    **/
    function getQueryString(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
        var r = window.location.search.substr(1).match(reg);
        if (r != null)
        return unescape(r[2]);
        return null;
    }
    export default{
        data(){
            return{
                detail:''
            }
        },
        components:{

        },
        created(){
            var id = getQueryString('id');
            const _this = this;
            this.$http.post('/getAdvisorDetail', {'id':id})
                .then(function(res){
                    console.log(res.body);
                    _this.detail = res.body;
                });
        }
    }
</script>
